<?php
class Review extends EnhancedModel {
    static $attr_protected = array("id","created_at");

    static $validates_presence_of = array(
        array('text'),
    );

    static $belongs_to = array(
        array('book','select' => 'id, isbn, price, title, description,
            on_stock,category_id,created_at,updated_at' ),
        array('user','select' => 'id, name, email')
    );
}
?>
